/*  1:   */ package com.rinsi.app.zhcx.jczl.kjxx.zdyh;
/*  2:   */ 
/*  3:   */ import com.rinsi.core.service.CoreSimpleService;
/*  4:   */ import com.rinsi.util.MapUtil;
/*  5:   */ import java.util.List;
/*  6:   */ import java.util.Map;
/*  7:   */ import org.mybatis.spring.SqlSessionTemplate;
/*  8:   */ import org.springframework.stereotype.Service;
/*  9:   */ 
/* 10:   */ @Service
/* 11:   */ public class ZhcxZdyhService
/* 12:   */   extends CoreSimpleService
/* 13:   */ {
/* 14:   */   public void afterIndex(Map<String, Object> model, Map<String, Object> rMap)
/* 15:   */   {
/* 16:18 */     Map<String, Object> params = getParams(model);
/* 17:   */     
/* 18:20 */     Map<String, Object> config = getConfig(model);
/* 19:   */     try
/* 20:   */     {
/* 21:24 */       List<Map<String, Object>> datas = getSqlSessionTemplate().selectList(namespace(config) + ".list", params);
/* 22:   */       
/* 23:26 */       rMap.put("datas", datas);
/* 24:   */       
/* 25:28 */       rMap.put("success", Boolean.valueOf(true));
/* 26:   */     }
/* 27:   */     catch (Exception e)
/* 28:   */     {
/* 29:32 */       rMap.put("success", Boolean.valueOf(false));
/* 30:34 */       if (MapUtil.getBoolean(rMap, "shoeExMessage").booleanValue()) {
/* 31:36 */         rMap.put("message", e.getMessage());
/* 32:   */       } else {
/* 33:40 */         rMap.put("message", "展示数据列表出错！请稍后重试，或联系系统管理员！");
/* 34:   */       }
/* 35:43 */       rMap.put("ex", e.getMessage());
/* 36:   */       
/* 37:45 */       e.printStackTrace();
/* 38:   */     }
/* 39:   */   }
/* 40:   */ }


/* Location:           D:\Users\Desktop\shanxi\项目\sxazmis\WEB-INF\classes\
 * Qualified Name:     com.rinsi.app.zhcx.jczl.kjxx.zdyh.ZhcxZdyhService
 * JD-Core Version:    0.7.0.1
 */